﻿using Furion.DependencyInjection;
using System.ComponentModel.DataAnnotations;

namespace iemtm.WeChat.Application.UserCenter
{
    [SkipScan]
    public class LoginInput
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required(ErrorMessage = "用户名不能为空"), MinLength(2, ErrorMessage = "用户名不能少于 2 位字符")]
        public string UserCode { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "用户名不能为空"), MinLength(2, ErrorMessage = "密码不能少于 2 位字符")]
        public string UserPwd { get; set; }
        /// <summary>
        /// 微信id
        /// </summary>
        public string WxOpenId { get; set; }
        /// <summary>
        /// 微信头像
        /// </summary>
        public string WxHreadImg { get; set; }
    }
}
